
begintalkscript;

variables;

begintalknode 10;
	state = -1;
	nextstate = 10;
	question = "Empire Archer";
	text1 = "The guard points at you, and calls out.";
	text2 = "_Hey, you! State your business!_";
	text5 = "The guard points at you, and raises his bow!";
	text6 = "_Take one step closer and I fire!_";
	text7 = "Your confusion quickly gives way to the realization that you're still wearing the Loyalist armor. The guard has clearly noticed this.";
	code = 
		if(get_flag(10,5) == 2) {
			clear_strings();
			add_string(1);
			add_string(2);
		}
		else if(get_flag(10,5) == 1) {
		clear_strings();
		add_string(5);
		add_string(6);
		add_string(7);
	}
	break;
begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = get_flag(10,5) == 2;
	question = "The mayor of Stonesthrow sent us.";
	text1 = "The guard takes a long look at you, and then ducks below the parapet for a moment. He quickly reappears, and you hear a rattling of chains.";
	text2 = "He gestures to the gate, which is slowly rattling open.";
	text3 = "_Go, now!_";
	text4 = "Well, at least now you know how you're getting into the city.";
	action = END_TALK;
	code = 
		play_sound(99);
		flip_terrain(29,6);
		flip_terrain(30,6);
		flip_terrain(31,6);
		force_instant_terrain_redraw();
		
		set_attitude(1001,10);
		
		set_flag(10,6,1);
	break;
begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = get_flag(10,5) == 1;
	question = "We're not Loyalists!";
	text1 = "The guard looks you up and down, but he does not lower his bow.";
	text2 = "_Nice try! Step closer, I dare you!_";
	text3 = "This doesn't appear to be getting you anywhere.";
	action = END_TALK;

begintalknode 13;
	state = -1;
	nextstate = -1;
	question = "Empire Archer";
	text1 = "Now that you've changed your armor (and the Loyalists are noticing), the guard takes a long look at you. He ducks below the parapet for a moment. When he reappears, you hear a rattling of chains.";
	text2 = "He gestures to the gate, which is slowly rattling open.";
	text3 = "_Go, now!_";
	text4 = "Well, at least now you know how you're getting into the city.";
	action = END_TALK;
	code = 
		play_sound(99);
		flip_terrain(29,6);
		flip_terrain(30,6);
		flip_terrain(31,6);
		force_instant_terrain_redraw();
		
		set_attitude(1001,10);
		
		set_flag(10,6,1);
	break;
begintalknode 14;
	state = -1;
	nextstate = -1;
	question = "Empire Archer";
	text1 = "Now that you've changed your armor (something the Loyalists have noticed too), the guard takes a long look at you. He ducks below the parapet for a moment. When he reappears, you hear a rattling of chains.";
	text2 = "He gestures to the gate, which is slowly rattling open.";
	text3 = "_Go, now!_";
	text4 = "Well, at least now you know how you're getting into the city.";
	action = END_TALK;
	code = 
		play_sound(99);
		flip_terrain(29,6);
		flip_terrain(30,6);
		flip_terrain(31,6);
		force_instant_terrain_redraw();
		
		set_attitude(1001,10);
		
		set_flag(10,6,1);
		set_flag(10,7,0);
	break;
